<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib prefix="sf" uri="http://www.springframework.org/tags/form" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <base href="${pageContext.request.scheme}://${pageContext.request.serverName}:${pageContext.request.serverPort}${pageContext.request.contextPath}/">
    <script src="resources/js/lib/sea.js"></script>
    <script type="text/javascript">
        seajs.config({
            base: "${pageContext.request.scheme}://${pageContext.request.serverName}:${pageContext.request.serverPort}${pageContext.request.contextPath}/resources/"
        });
        seajs.use(["css/admin/main.css"]);
    </script>
</head>
<body>
<div id="content">
    <h3 class="admin_link_bar">
        <jsp:include page="inc.jsp"/>
    </h3>
    <sf:form method="post" modelAttribute="role" id="addForm">
        <table width="800" cellspacing="0" cellPadding="0">
            <sf:hidden path="id"/>
            <thead>
            <tr>
                <td colspan="2">修改角色功能</td>
            </tr>
            </thead>
            <tr>
                <td class="rightTd" width="200px">角色名称:&nbsp</td>
                <td class="leftTd"><sf:input path="name" size="30"/>
            </tr>
            <tr>
                <td class="rightTd">角色类型:&nbsp</td>
                <td class="leftTd">
                        <%-- <sf:radiobuttons path="roleType" items="${types }" />--%>
                    <sf:select path="roleType">
                        <sf:options items="${types}"/>
                    </sf:select>
                </td>
            </tr>
            <tr>
                <td colspan="2" class="centerTd"><input type="submit" value="修改角色"/><input type="reset"/></td>
            </tr>
        </table>
    </sf:form>
</div>
</body>
</html>